#ifndef __AS_POPUP_SCREEN__H__
#define __AS_POPUP_SCREEN__H__

/*[pop up screen] should be a singleton pattern*/
#include "ASScreen.h"
#include "..\control\ASLabel.h"

typedef struct
{
    as_screen base;
    as_label* content;
} as_popup_screen;

/*init and deinit functions are just called by screen stack.*/
void as_popup_screen_init(as_screen* screen_p);
void as_popup_screen_deinit(as_screen* screen_p);

/*
 *	[description] show a pop up screen
 *  [param] content : pop up content
 *  [attention] : all string should be encoded as gb2312.
 */
void as_show_popup_screen(ASSTR content);

void as_show_error_popup(as_ret ret);
#endif//__AS_POPUP_SCREEN__H__